﻿using System.Configuration;

/// <summary>
/// Singleton Manager 
/// </summary>
public class Manager
{
   private static ArtefactListMgr instance;
   private static OwnerShipSupport instanceOw;

   private Manager() { }

   public static ArtefactListMgr Instance
   {
      get 
      {
         if (instance == null)
         {
             string rootpath = ConfigurationManager.AppSettings["ArtefactRootPath"].Trim().ToLower();

             instance = new ArtefactListMgr(rootpath);
         }
         return instance;
      }
   }
   public static OwnerShipSupport OwnerShip
   {
       get
       {
           if (instanceOw == null)
               instanceOw = new OwnerShipSupport();
           return instanceOw;
       }
   }

}
